﻿using PWMIS.Common;
using PWMIS.DataMap.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2.Entity
{
    [Serializable()]
    public partial class T_MyStudyProgress : EntityBase
    {
        public T_MyStudyProgress()
        {
            TableName = "T_MyStudyProgress";
            Schema = "dbo";
            EntityMap = EntityMapType.Table;
            //IdentityName = "标识字段名";

            //PrimaryKeys.Add("主键字段名");
            PrimaryKeys.Add("UserId");
            PrimaryKeys.Add("Year");


        }


        protected override void SetFieldNames()
        {
            PropertyNames = new string[] { "UserId", "Year", "ChoosedCourseCount", "StudiedCourseCount", "IsChooseFinished", "IsStudyFinished", "IsExamPassed", "Status" };
        }



        /// <summary>
        /// 
        /// </summary>
        public System.Int32 UserId
        {
            get { return getProperty<System.Int32>("UserId"); }
            set { setProperty("UserId", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32 Year
        {
            get { return getProperty<System.Int32>("Year"); }
            set { setProperty("Year", value); }
        }

        /// <summary>
        /// 已选课时的长度
        /// </summary>
        public System.Int16 ChoosedCourseCount
        {
            get { return getProperty<System.Int16>("ChoosedCourseCount"); }
            set { setProperty("ChoosedCourseCount", value); }
        }

        /// <summary>
        /// 已学习课程课程的数量
        /// </summary>
        public System.Int16 StudiedCourseCount
        {
            get { return getProperty<System.Int16>("StudiedCourseCount"); }
            set { setProperty("StudiedCourseCount", value); }
        }

        /// <summary>
        /// 是否已经选课完成
        /// </summary>
        public System.Boolean IsChooseFinished
        {
            get { return getProperty<System.Boolean>("IsChooseFinished"); }
            set { setProperty("IsChooseFinished", value); }
        }

        /// <summary>
        /// 本年度是否已经学习完成
        /// </summary>
        public System.Boolean IsStudyFinished
        {
            get { return getProperty<System.Boolean>("IsStudyFinished"); }
            set { setProperty("IsStudyFinished", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Boolean IsExamPassed
        {
            get { return getProperty<System.Boolean>("IsExamPassed"); }
            set { setProperty("IsExamPassed", value); }
        }

        /// <summary>
        /// 0-未开始；1-个人信息；2-选择课程；3-学习课程；4-考试阶段；5-打印成绩
        /// </summary>
        public System.Byte Status
        {
            get { return getProperty<System.Byte>("Status"); }
            set { setProperty("Status", value); }
        }


    }

}
